﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UClaimDemageControlUpdateSupplerDetail.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.UClaimDemageControlUpdateSupplerDetail" %>
<div class="pageContent UClaimDemageControlUpdateSupplerDetail">
	<form method="post" action="UserModel/UClaimDemageControlUpdateSupplerDetail.aspx?ajaxmethod=add" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">	
             <div class="hitdiv">
                <h2>提示:</h2>
                只有输入索赔单号的行才会保存.
             </div>  
            <div  >
                <asp:repeater id="rpSupplerDetail4" runat="server" >
                    <HeaderTemplate>  
                    <table width="920px"   class="mylist">                        
                        <thead>  
                            <tr>                                
                                <th colspan="4" align="center">索赔单</th>
                                <th colspan="6" align="center">向供应商提交索赔费用</th>
                            </tr>                                        
                            <tr >
                                <th width="85px">品情单号</th> 
                                <th width="85px" >索赔单号</th>                             
                                <%--<th width="85px">责任归属</th>--%>
                                <th width="85px">供应商</th>                                
                                <th width="85px">人民币</th>
                                <th width="85px">美元金额</th>
                                <th width="85px">汇率</th>
                                <th width="85px">日元金额</th>
                                <th width="85px">汇率</th>
                                <th width="150px">索赔配件(折成金额)</th>
                                <th width="120px">索赔提交时间</th>
                            </tr>
                        </thead>
                        <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="mytr supplerdetailitem" >   
                            <td>
                                <input name="ControlDetailID"  type="hidden" class=""  value="<%# Eval("ControlDetailID") %>" />
                                <input name="OnlyWork"  type="hidden" class=""  value="false" />      
                                <input name="ClaimsNumber"  type="text" class="autocomplete"  value="<%=ClaimsNumber %>" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=autocompletegetallclaimsnumber" swidth="200px" showinputid=""/></td>
                            <td><input name="SuoPeiNum"  type="text" class="required"  value="<%# Eval("SuoPeiNum") %>" /></td>                         
                           <%-- <td>
                                                      
                                <input name="Duty"  type="text" class=""  value="<%# Eval("Duty") %>" />
                            </td>--%>
                            <td><input type="text" name="SupplerName" class="required autocomplete" value="<%# Eval("SupplerName") %>" alt=""  autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist" swidth="300px" showinputid=""/></td>
                            
                            <td> <input name="SupplerRMB"  type="text" class="inputFloat"  value="<%# Eval("SupplerRMB") %>" /></td>
                            <td><input name="SupplerUS"  type="text" class="inputFloat"   value="<%# Eval("SupplerUS") %>" /></td>
                            <td> <input name="SupplerUSRate"  type="text" class="inputFloat"  value="<%# Eval("SupplerUSRate") %>" /></td>
                            <td> <input name="SupplerJPY"  type="text" class="inputFloat"  value="<%# Eval("SupplerJPY") %>" /></td>
                            <td> <input name="SupplerJPYRate"  type="text" class="inputFloat"  value="<%# Eval("SupplerJPYRate") %>" /></td>
                            <td> <input name="SupplerPartCost"  type="text" class="inputFloat"  value="<%# Eval("SupplerPartCost") %>" /></td>
                            <td><input name="SupplerSubmitDate" type="text" class="date" value="<%# Eval("SupplerSubmitDate") %>"/> </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tbody>
                    </table>
                </FooterTemplate> 
                </asp:repeater>
                </div>
           
        
       <%-- 
        <% if(SupplerDetailDT.Select(" onlywork=0 ").Count()>0){ %>		
           <div  class="titleshowlegent">
            实物索赔部份
           </div>
           <asp:repeater id="rpSupplerDetail" runat="server">
            <HeaderTemplate>  
            
            </HeaderTemplate>
            <ItemTemplate>
            <div class="supplerdetailitem"> 
                <input name="ControlDetailID"  type="hidden" class=""  value="<%# Eval("ControlDetailID") %>" />
                <input name="OnlyWork"  type="hidden" class=""  value="false" />
                <input name="ClaimsNumber"  type="hidden" class=""  value="<%=ClaimsNumber %>" />
                <table style="width:100%;" class="mylist">                        
                        <thead>                                          
                        <tr >
                            <td colspan="6" style=" display:<%# Convert.ToBoolean(Eval("OnlyWork"))?"none":""%>; font-weight:bold; color:Red;">                            
                              出库单号: <%# Eval("DocEntry") %>&nbsp;
                              物料号: <%# Eval("ItemCode")%>&nbsp;
                              物料名称: <%# Eval("Dscription")%>&nbsp;
                              数量: <%# Eval("Quantity")%>&nbsp;
                              金额: <%# Eval("LineTotal")%>&nbsp;                             
                            </td>
                            <td colspan="6" style=" display:<%# Convert.ToBoolean(Eval("OnlyWork"))?"":"none"%>;font-weight:bold; ">                            
                              其它应向供应商索赔部份(如只索赔相应工时费)                         
                            </td>
                        </tr>
                        <tr >
                            <td style="background-color:#fff!important;">责任归属:</td>
                            <td style="background-color:#fff!important;"> <input name="Duty"  type="text" class=""  value="<%# Eval("Duty") %>" /></td>
                             <td style="background-color:#fff!important;">供应商:</td>
                            <td colspan="3" style="background-color:#fff!important;"><input type="text" name="SupplerName" class="required autocomplete" value="<%# Eval("SupplerName") %>" alt=""  autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist" swidth="300" showinputid=""/></td>
                        </tr>
                        <tr>
                            <th >
                                向供应商索赔
                            </th>
                            <th>
                                美元</th>
                            <th>
                                日元</th>
                            <th>
                                人民币</th>
                            <th>
                                索赔配件（折成金额）</th>
                        </tr>     
                        </thead>
                        <tr >                           
                            <td>
                                金额</td>
                            <td>
                                 <input name="SupplerUS"  type="text" class="inputFloat"   value="<%# Eval("SupplerUS") %>" /></td>
                            <td>
                                <input name="SupplerJPY"  type="text" class="inputFloat"   value="<%# Eval("SupplerJPY") %>" /></td>
                            <td>
                               <input name="SupplerRMB"  type="text" class="inputFloat"  value="<%# Eval("SupplerRMB") %>" /></td>
                            <td>
                               <input name="SupplerPartCost"  type="text" class="inputFloat"  value="<%# Eval("SupplerPartCost") %>" /></td>
                        </tr>
                        <tr  >
                            <td>
                                汇率</td>
                            <td>
                               <input name="SupplerUSRate"  type="text" class="inputFloat"  value="<%# Eval("SupplerUSRate") %>" /></td>
                            <td>
                                <input name="SupplerJPYRate"  type="text" class="inputFloat"  value="<%# Eval("SupplerJPYRate") %>" /></td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>                     
                    </table>
                <div class="divider"></div>
                 </div>
                </ItemTemplate>
                <FooterTemplate>
               
            </FooterTemplate> 
            </asp:repeater>
            <%} %>
           <div  class="titleshowlegent">
            无实物索赔部份(如只索赔工时费)
           </div>
           <div class="supplerdetailitem">          		
           <input name="OnlyWork"  type="hidden" class=""  value="true" />
           <input name="ControlDetailID"  type="hidden" class=""  value="<%=onlyworkObj.ControlDetailID %>" />
           <input name="ClaimsNumber"  type="hidden" class=""  value="<%=ClaimsNumber %>" />		
            <table style="width:100%;" class="mylist">                        
                        <thead> 
                        <tr >
                            <td style="background-color:#fff!important;">供应商:</td>
                            <td colspan="3" style="background-color:#fff!important;"><input type="text" name="SupplerName" class="required autocomplete" value="<%=onlyworkObj.SupplerName %>" alt=""  autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist" swidth="300" showinputid=""/></td>
                        </tr>
                        <tr>
                            <th >
                                向供应商索赔
                            </th>
                            <th>
                                美元</th>
                            <th>
                                日元</th>
                            <th>
                                人民币</th>
                            
                        </tr>     
                        </thead>
                        <tr >                           
                            <td>
                                金额</td>
                            <td>
                                 <input name="SupplerUS"  type="text" class="inputFloat"   value="<%=onlyworkObj.SupplerUS %>" /></td>
                            <td>
                                <input name="SupplerJPY"  type="text" class="inputFloat"   value="<%=onlyworkObj.SupplerJPY %>" /></td>
                            <td>
                               <input name="SupplerRMB"  type="text" class="inputFloat"  value="<%=onlyworkObj.SupplerRMB %>" /></td>
                            
                        </tr>
                        <tr  >
                            <td>
                                汇率</td>
                            <td>
                               <input name="SupplerUSRate"  type="text" class="inputFloat"  value="<%=onlyworkObj.SupplerUSRate %>" /></td>
                            <td>
                                <input name="SupplerJPYRate"  type="text" class="inputFloat"  value="<%=onlyworkObj.SupplerJPYRate %>" /></td>
                            <td>
                                &nbsp;</td>
                          
                        </tr>                     
                    </table>
            </div>--%>
		</div>
		<div class="formBar">
			<ul>
				 <% if (HasPower(IHISCETeim.Web.Permission.索赔管控_索赔录入))
        {%>
				<li><div class="buttonActive"><div class="buttonContent"><button type="button" class="submit">保存</button></div></div></li>
                <%} %>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>